package com.yqw.onlineDocs.manager.websocket.model;

import com.yqw.onlineDocs.model.vo.UserVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文档编辑响应消息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DocumentEditResponseMessage {
  /**
   * 消息类型，例如 "INFO", "ERROR", "ENTER_EDIT", "EXIT_EDIT", "EDIT_ACTION",
   * "CURSOR_MOVE"
   */
  private String type;

  /**
   * 信息
   */
  private String message;

  /**
   * 编辑内容
   */
  private String content;

  /**
   * 编辑位置
   */
  private Integer position;

  /**
   * 操作类型
   */
  private String operation;

  /**
   * 用户信息
   */
  private UserVO user;
}